package com.example.lianjuan.Utils;

import com.example.lianjuan.Presenter.impl.impl.CategoryPagerPresenterImpl;
import com.example.lianjuan.Presenter.impl.impl.HomePresenterImpl;
import com.example.lianjuan.Presenter.impl.impl.OnSellPresenterImpl;
import com.example.lianjuan.Presenter.impl.impl.SearchPresenterImpl;
import com.example.lianjuan.Presenter.impl.impl.SelectPresenterImpl;
import com.example.lianjuan.Presenter.impl.impl.TicketPresenterImpl;

public class PresenterManang {
    private static PresenterManang outInstance;
    private CategoryPagerPresenterImpl mCategoryPagerPresenter;
    private HomePresenterImpl mHomePresenter;
    private TicketPresenterImpl mTicketPresenter;
    private final SelectPresenterImpl mSelectPresenter;
    private final OnSellPresenterImpl mOnSellPresenter;
    private final SearchPresenterImpl mSearchPresenter;

    public CategoryPagerPresenterImpl getCategoryPagerPresenter() {
        return mCategoryPagerPresenter;
    }

    public HomePresenterImpl getHomePresenter() {
        return mHomePresenter;
    }

    public TicketPresenterImpl getTicketPresenter() {
        return mTicketPresenter;
    }

    public SelectPresenterImpl getSelectPresenter() {
        return mSelectPresenter;
    }

    public OnSellPresenterImpl getOnSellPresenter() {
        return mOnSellPresenter;
    }


    public SearchPresenterImpl getSearchPresenter() {
        return mSearchPresenter;
    }

    private PresenterManang() {
        mCategoryPagerPresenter = new CategoryPagerPresenterImpl();
        mHomePresenter = new HomePresenterImpl();
        mTicketPresenter = new TicketPresenterImpl();
        mSelectPresenter = new SelectPresenterImpl();
        mOnSellPresenter = new OnSellPresenterImpl();
        mSearchPresenter = new SearchPresenterImpl();
    }

    public static PresenterManang getInstance() {
        if (outInstance == null) {
            outInstance = new PresenterManang();
            return outInstance;
        }
        return outInstance;
    }

}
